package com.logictech.lims.entity;

import java.util.Date;

import org.jeecgframework.p3.core.utils.persistence.Entity;

import com.logictech.common.util.data.StringUtils;

/**
 * 描述：</b>ReagentType:<br>
 * 
 * @author guoqi
 * @since：2017年03月21日 16时10分47秒 星期二
 * @version:1.0
 */
public class ReagentType implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * 试剂类型id
	 */
	private Integer id;
	/**
	 * 英文名称
	 */
	private String englishName;
	/**
	 * 中文名称
	 */
	private String chineseName;
	/**
	 * 位置
	 */
	private Integer positionId;
	/**
	 * 库位
	 */
	private Integer locationId;
	/**
	 * 位置
	 */
	private String positionNo;
	/**
	 * 库位
	 */
	private String locationNo;
	/**
	 * 存放条件
	 */
	private String storageCondition;
	/**
	 * 存放条件
	 */
	private String storageConditionVal;
	/**
	 * CAS序列号
	 */
	private String casNo;
	/**
	 * 列数
	 */
	private Integer columnNumber;
	/**
	 * 一般规格
	 */
	private Integer size;
	/**
	 * 最大储存量
	 */
	private Integer maxStorage;
	/**
	 * 危害注意事项
	 */
	private String hazardPrecautions;
	/**
	 * 危害注意事项
	 */
	private String hazardPrecautionsVal;
	/**
	 * 防护条件
	 */
	private String protectiveCondition;
	/**
	 * 警戒值
	 */
	private Integer alarmStorage;
	
	private String deleteFlag;
	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getEnglishName() {
		return nvl(this.englishName);
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public String getChineseName() {
		return nvl(this.chineseName);
	}

	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}

	public Integer getPositionId() {
		return this.positionId;
	}

	public void setPositionId(Integer positionId) {
		this.positionId = positionId;
	}

	public Integer getLocationId() {
		return this.locationId;
	}

	public void setLocationId(Integer locationId) {
		this.locationId = locationId;
	}

	public String getStorageCondition() {
		return nvl(this.storageCondition);
	}

	public void setStorageCondition(String storageCondition) {
		this.storageCondition = storageCondition;
	}

	public String getCasNo() {
		return nvl(this.casNo);
	}

	public void setCasNo(String casNo) {
		this.casNo = casNo;
	}

	public Integer getColumnNumber() {
		return this.columnNumber;
	}

	public void setColumnNumber(Integer columnNumber) {
		this.columnNumber = columnNumber;
	}

	public Integer getSize() {
		return this.size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getMaxStorage() {
		return this.maxStorage;
	}

	public void setMaxStorage(Integer maxStorage) {
		this.maxStorage = maxStorage;
	}

	public String getHazardPrecautions() {
		return nvl(this.hazardPrecautions);
	}

	public void setHazardPrecautions(String hazardPrecautions) {
		this.hazardPrecautions = hazardPrecautions;
	}

	public String getProtectiveCondition() {
		return nvl(this.protectiveCondition);
	}

	public void setProtectiveCondition(String protectiveCondition) {
		this.protectiveCondition = protectiveCondition;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getAlarmStorage() {
		return alarmStorage;
	}

	public void setAlarmStorage(Integer alarmStorage) {
		this.alarmStorage = alarmStorage;
	}

	public String getPositionNo() {
		return nvl(positionNo);
	}

	public void setPositionNo(String positionNo) {
		this.positionNo = positionNo;
	}

	public String getLocationNo() {
		return nvl(locationNo);
	}

	public void setLocationNo(String locationNo) {
		this.locationNo = locationNo;
	}

	public String getStorageConditionVal() {
		return nvl(storageConditionVal);
	}

	public void setStorageConditionVal(String storageConditionVal) {
		this.storageConditionVal = storageConditionVal;
	}

	public String getHazardPrecautionsVal() {
		return nvl(hazardPrecautionsVal);
	}

	public void setHazardPrecautionsVal(String hazardPrecautionsVal) {
		this.hazardPrecautionsVal = hazardPrecautionsVal;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "[英文名=" + englishName + ", 中文名=" + chineseName + ", 位置=" + positionNo + ", 库位=" + locationNo + ", 存放条件=" + storageConditionVal + ", CAS序列号=" + StringUtils.nvl(casNo) +", 列数=" + (columnNumber == null?"":columnNumber) + ", 规格=" + (size == null?"":size) +", 最大储存量=" + (maxStorage == null?"":maxStorage) + ", 危害注意事项=" + StringUtils.nvl(hazardPrecautionsVal) + ", 防护条件=" + StringUtils.nvl(protectiveCondition) + ", 警戒值=" + alarmStorage + "]";
	}
	
	
	
	public static String nvl(String value) {
        if (value == null) {
            return "";
        } else {
            return value.trim();
        }
    }

}
